home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_11_07
/
1107094b
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1993-04-29
|
369 b
|
26 lines
/* REAL_L3.C, Listing 3 */
#include <math.h>
#include <real_t.h>
void main( void )
{
int i;
real_t x, error;
x = RC( 1.0 );
error = RC( 0.0 );
for ( i = 0; i < 30000; i++ )
{
error += fabs( x - sqrt( x ) * sqrt( x ) );
x++;
}
error = error;
} /* function main */
/* End of REAL_L3.C */